/*
 *                    COPYRIGHT NOTICE
 *
 *           This code is copyright protected by Freedom Inc.
 *
 *              2001-2012 All Rights Are Reserved
 */
package com.freedom.oldsong.hr.resource.service.impl;

import java.util.HashMap;
import java.util.Map;

import com.freedom.oldsong.hr.resource.dao.BleumieDao;
import com.freedom.oldsong.hr.resource.dao.ResourceDao;
import com.freedom.oldsong.hr.resource.service.HRDashBoardService;
import com.freedom.oldsong.system.dto.PaginationResult;

/**
 * @author steven.wang
 *
 */
public class HRDashBoardServiceImpl implements HRDashBoardService {
	
	private ResourceDao resourceDao;
	
	private BleumieDao bleumieDao;

	public void testMethod(){
		resourceDao.selectByPrimaryKey(1L);
		resourceDao.findObject(1L);
		resourceDao.findList(1L, "resource1");
		
		bleumieDao.selectByPrimaryKey(1L);
		bleumieDao.testObject(1L);
		bleumieDao.testList(1L,"bleumie1");
		bleumieDao.exePObject(1L, "bleumie");
		testPagination(1,20,"id");
	}
	
	public PaginationResult testPagination(Integer currentPage, Integer pageSize,String sort){
		Map param = new HashMap<String,Object>();
		param.put("bleumieId", 1L);
		param.put("bleumieName", "bleumie1");
		return bleumieDao.testPagination(new PaginationResult(currentPage,pageSize,sort),param);
	}

	public void setResourceDao(ResourceDao resourceDao) {
		this.resourceDao = resourceDao;
	}

	public void setBleumieDao(BleumieDao bleumieDao) {
		this.bleumieDao = bleumieDao;
	}
}
